<!--
 * @Author: Hunter
 * @Date: 2022-02-28 10:41:21
 * @LastEditTime: 2022-11-24 17:00:12
 * @LastEditors: Hunter
 * @Description: 
 * @FilePath: \book_mark_private\src\components\menu-btn\index.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
    <el-dropdown class="menu-btn">
        <el-button type="primary">
            菜单<el-icon class="el-icon--right">
                <arrow-down />
            </el-icon>
        </el-button>
        <template #dropdown>
            <el-dropdown-menu>
                <el-dropdown-item v-for="item in dropDownList" @click="item.handler">{{ item.label }}</el-dropdown-item>
            </el-dropdown-menu>
        </template>
    </el-dropdown>
</template>
  
<script lang="ts">
export default {
    props: ["dropDownList"],
};
</script>
  
<style scoped>
.menu-btn {
    position: fixed;
    right: 10px;
    top: 10px;
}
</style>